/* ----------------------------- */
/* VARIABLES & GLOBAL STYLES     */
/* ----------------------------- */
:root {
    --brand-green: #5aaee0;
    --brand-black: #000000;
    --brand-white: #FFFFFF;
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--brand-black);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--brand-green);
}

.text-center {
    text-align: center;
    margin-top: 50px;
}

section {
    padding: 100px 50px;
}

/* ----------------------------- */
/* 1. HEADER                     */
/* ----------------------------- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: var(--brand-black);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.logo a { font-size: 2.2rem; font-weight: 800; }
.logo-highlight { color: var(--brand-green); }
.header-middle { display: flex; align-items: center; gap: 50px; }
.main-nav ul { list-style: none; display: flex; gap: 40px; }
.main-nav a { position: relative; font-weight: 500; padding-bottom: 8px; transition: color 0.3s; }
.main-nav a:hover { color: var(--brand-white); }
.main-nav a.active { color: var(--brand-green); font-weight: 700; }
.main-nav a::after { content: ''; position: absolute; width: 100%; height: 2px; bottom: 0; left: 0; background-color: var(--brand-green); transform: scaleX(0); transform-origin: bottom right; transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: bottom left; }
.cta-button { display: inline-block; background-color: var(--brand-green); color: var(--brand-black); padding: 14px 30px; border-radius: 50px; font-weight: 700; transition: transform 0.3s, background-color 0.3s; }
.cta-button:hover { transform: scale(1.05); background-color: var(--brand-white); }

/* Hamburger Menu */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
}

.hamburger .bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--brand-white);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-white);
    transition: color 0.3s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--brand-green);
}


/* ----------------------------- */
/* 9. FOOTER                     */
/* ----------------------------- */
.main-footer {
    background-color: #0a0a0a;
    padding: 60px 50px 30px;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-section {
    position: relative;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--brand-green);
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
}

.footer-links-row:last-child {
    margin-bottom: 0;
}

.footer-links-row a {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links-row a:hover {
    color: var(--brand-green);
}

.social-section .footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-icons-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.social-icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

.social-icon-box:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
    transform: translateY(-3px);
}

.back-to-top {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: var(--brand-green);
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--brand-green);
}


/* ----------------------------- */
/* RESPONSIVENESS                */
/* ----------------------------- */
@media (max-width: 1024px) {
    .header-middle { display: none; }
    .hamburger { display: flex !important; }
    .cta-button { display: none !important; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    section { padding: 60px 20px; }
    .main-header { padding: 15px 20px; }
    .logo a { font-size: 1.8rem; }
    .cta-button { display: none !important; }
    .section-title { font-size: 2rem; margin-bottom: 30px; }
    
    /* Mobile Header & Hamburger Fix */
    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .hamburger {
        display: flex !important;
        padding: 10px;
        margin: 0;
    }
    
    .hamburger .bar {
        width: 24px;
        height: 2px;
        margin: 3px 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hamburger .bar {
        width: 22px;
        height: 2px;
        margin: 4px 0;
    }
    
    /* Footer Mobile */
    .main-footer {
        padding: 50px 20px 25px;
    }
    
    .footer-container {
        gap: 35px;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .footer-links-row {
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .footer-links-row a {
        font-size: 0.95rem;
    }
    
    .social-icons-row {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .social-icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        margin-top: 40px;
        padding-top: 25px;
        gap: 12px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    .footer-legal {
        gap: 20px;
    }
    
    .footer-legal a {
        font-size: 0.85rem;
    }
    
    .back-to-top {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    section { padding: 50px 15px; }
    .section-title { font-size: 1.8rem; }
    .logo a { font-size: 1.6rem; }
    .cta-button { 
        display: none !important;
    }
    .mobile-nav a { font-size: 1.5rem; }
    
    /* Footer Small Mobile Fix */
    .main-footer {
        padding: 40px 15px 20px;
    }
    
    .footer-container {
        gap: 30px;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    
    .footer-title::after {
        width: 30px;
        height: 2px;
    }
    
    .footer-links-row {
        gap: 12px;
        margin-bottom: 8px;
    }
    
    .footer-links-row a {
        font-size: 0.9rem;
    }
    
    .social-section .footer-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .social-icons-row {
        gap: 8px;
        margin-bottom: 18px;
    }
    
    .social-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .back-to-top {
        font-size: 0.9rem;
        padding: 10px 18px;
        background: rgba(90, 174, 224, 0.1);
        border: 1px solid rgba(90, 174, 224, 0.3);
        border-radius: 25px;
        margin-top: 15px;
    }
    
    .footer-bottom {
        margin-top: 35px;
        padding-top: 20px;
        gap: 10px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-legal {
        gap: 15px;
    }
    
    .footer-legal a {
        font-size: 0.8rem;
    }
}
